<%@ Page Language="C#" MasterPageFile="~/BluePortalMaster.Master" AutoEventWireup="true"
    CodeBehind="EditUser.aspx.cs" Inherits="BluePortal.QuikStart.EditUser" Title="Untitled Page" %>

<%@ Register Src="UserControls/VideoList.ascx" TagName="VideoList" TagPrefix="uc1" %>
<%@ Register Src="UserControls/MediaChannels.ascx" TagName="MediaChannels" TagPrefix="uc2" %>
<%@ Register Src="UserControls/AddUpdateChannel.ascx" TagName="AddUpdateChannel" TagPrefix="uc3" %>

<asp:Content ID="Content1" ContentPlaceHolderID="DefaultContent" runat="server">
    <div class="drawer" style="float: left; width: 300px; height: 300px">
        <h1>
            Personal Data</h1>
        <div class="drawer-content">
            <asp:ValidationSummary ID="vsUser" runat="server" />
            <asp:Label ID="lbLoginName" runat="server" Text="Login Name : " AssociatedControlID="tbLoginName"></asp:Label>
            <asp:TextBox ID="tbLoginName" runat="server" Text="" CssClass="input-box"></asp:TextBox>
            <br />
            <asp:Label ID="lbEmail" runat="server" Text="Email : " AssociatedControlID="tbEmail"></asp:Label>
            <asp:TextBox ID="tbEmail" runat="server" Text="" CssClass="input-box"></asp:TextBox>
            <br />
            <asp:Label ID="lbAge" runat="server" Text="Date of birth : " AssociatedControlID="tbAge"></asp:Label>
            <asp:TextBox ID="tbAge" runat="server" CssClass="input-box"></asp:TextBox>
            <asp:RangeValidator ID="rvDateOfBirth" runat="server" ErrorMessage="13 years old"
                Type="Date" ControlToValidate="tbAge"></asp:RangeValidator>
            <br />
            <asp:Label ID="lbLocation" runat="server" Text="Location :" AssociatedControlID="tbLocation"></asp:Label>
            <asp:TextBox ID="tbLocation" runat="server" CssClass="input-box"></asp:TextBox>
            <br />
            <br />            
            <asp:Button ID="btUpdateUser" runat="server" Text="Update" OnClick="btUpdateUser_Click" />
            <asp:Button ID="btDelete" runat="server" Text="Delete" OnClick="btDelete_Click" />
            <asp:CustomValidator ID="cvUser" runat="server"></asp:CustomValidator>
        </div>
    </div>
    <div class="drawer" style="width: 250px; height: 300px;">
        <h1>
            Upload Avatar</h1>
        <div class="drawer-content">
            <asp:Image ID="Image1" runat="server" Width="46" Height="46" ImageUrl="Images/AvatarHandler.ashx" /><br />
            <asp:FileUpload ID="fuAvatar" runat="server" /><br />
            <asp:Button ID="btUpload" runat="server" Text="Submit" CausesValidation="False" OnClick="btUpload_Click" />
        </div>
    </div>
    <div class="drawer" style="min-height: 150px">
        <h1>
            My all videos</h1>
        <div class="drawer-content">
            <uc1:VideoList ID="myAllVideos" runat="server" ModeStr="DefaultPlusStatus" />
        </div>
    </div>
    <div class="drawer" style="min-height: 150px">
        <h1>
            My Channels</h1>
        <div class="drawer-content">
            <uc3:AddUpdateChannel ID="AddChannel1" runat="server" />
            <div class="drawer">
                <h1>
                    My Channels</h1>
                <div class="drawer-content">
                    <uc2:MediaChannels ID="Channel1" runat="server" />
                </div>
            </div>
        </div>
    </div>
</asp:Content>
